<?php

class my_order_del{
public function index()
{
$root = array();
$id = intval($GLOBALS['request']['order_id']);
if(empty($di)){
$root['return'] = 0;
$root['info'] ='订单不存在';
}
$GLOBALS['db']->query('delete from '.DB_PREFIX."supplier_location_order  where id='{$id}' ");
$rs = $GLOBALS['db']->affected_rows();
if($rs)
{
$root['return'] = 1;
$root['info'] ='删除成功';
}
else
{
$root['return'] = 0;
$root['info'] ='删除失败';
}
output($root);
}
}
?>